package com.sharkpro.designPattern.myAdapter;

/**
 * @author jianxin.wei
 * @description  委托模式
 * @date 2024/12/17 13:49
 */
public class PrintBannerDelegation extends PrintDelegation{
    private Banner banner;
    public PrintBannerDelegation(String string){
        this.banner = new Banner(string);
    }

    @Override
    public void printWeak() {
        banner.showWithParen();
    }

    @Override
    public void printStrong() {
        banner.showWithAster();
    }
}
